//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================
class PktStatWnd : public VxPktHdr 
{
public:
	PktStatWnd()
	{
		m_u16PktType = PKT_TYPE_STAT_WND;
	}
	void CalcLen( U16 u16NameLen )
	{
		//calculate length of packet from msg len including null terminator
		m_u16PktLen = ROUND_TO_16BYTE_BOUNDRY( ( sizeof( PktStatWnd ) - PKT_MAX_AVATAR_NAME_LEN + u16NameLen ) );
	}
	U16		u16Flags;		// Flags
	U32		u32PlayerSn;	// serial of player
	U16		u16Strength;	// strength
	U16		u16Dex;			// dexterity
	U16		u16Intel;		// intelligence
	U16		u16CurHp;		// current hit points
	U16		u16MaxHp;		// max hit points
	U16		u16CurStamina;	// current Stamina
	U16		u16MaxStamina;	// max Stamina
	U16		u16CurMana;		// current Mana
	U16		u16MaxMana;		// max Mana
	U16		u16ArmorClass;	// armor class
	U16		u16Weight;		// weight
	U32		u32Gold;		// gold 
//	U16		u16StatCap;		// stat cap
	U8		u8Race;			// race .. if bit 7 set then female sex
	U8		u8CurPets;		// current pets
	U8		u8MaxPets;		// max pets
	U8		au8PlayerName[ PKT_MAX_AVATAR_NAME_LEN + 1 ];  
};
